Optimal. Leaf size=215 \[ \frac {a^2 p^2 x^2}{b^2}-\frac {a p^2 \left (a+b x^2\right )^2}{4 b^3}+\frac {p^2 \left (a+b x^2\right )^3}{27 b^3}-\frac {a^3 p^2 \log ^2\left (a+b x^2\right )}{6 b^3}-\frac {a^2 p \left (a+b x^2\right ) \log \left (c \left (a+b x^2\right )^p\right )}{b^3}+\frac {a p \left (a+b x^2\right )^2 \log \left (c \left (a+b x^2\right )^p\right )}{2 b^3}-\frac {p \left (a+b x^2\right )^3 \log \left (c \left (a+b x^2\right )^p\right )}{9 b^3}+\frac {a^3 p \log \left (a+b x^2\right ) \log \left (c \left (a+b x^2\right )^p\right )}{3 b^3}+\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 215, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {2504, 2445,
2458, 45, 2372, 12, 14, 2338} \begin {gather*} \frac {a^3 p \log \left (a+b x^2\right ) \log \left (c \left (a+b x^2\right )^p\right )}{3 b^3}-\frac {a^3 p^2 \log ^2\left (a+b x^2\right )}{6 b^3}-\frac {a^2 p \left (a+b x^2\right ) \log \left (c \left (a+b x^2\right )^p\right )}{b^3}+\frac {a^2 p^2 x^2}{b^2}-\frac {p \left (a+b x^2\right )^3 \log \left (c \left (a+b x^2\right )^p\right )}{9 b^3}+\frac {a p \left (a+b x^2\right )^2 \log \left (c \left (a+b x^2\right )^p\right )}{2 b^3}+\frac {p^2 \left (a+b x^2\right )^3}{27 b^3}-\frac {a p^2 \left (a+b x^2\right )^2}{4 b^3}+\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 45
Rule 2338
Rule 2372
Rule 2445
Rule 2458
Rule 2504
Rubi steps
\begin {align*} \int x^5 \log ^2\left (c \left (a+b x^2\right )^p\right ) \, dx &=\frac {1}{2} \text {Subst}\left (\int x^2 \log ^2\left (c (a+b x)^p\right ) \, dx,x,x^2\right )\\ &=\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right )-\frac {1}{3} (b p) \text {Subst}\left (\int \frac {x^3 \log \left (c (a+b x)^p\right )}{a+b x} \, dx,x,x^2\right )\\ &=\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right )-\frac {1}{3} p \text {Subst}\left (\int \frac {\left (-\frac {a}{b}+\frac {x}{b}\right )^3 \log \left (c x^p\right )}{x} \, dx,x,a+b x^2\right )\\ &=-\frac {1}{18} p \left (\frac {18 a^2 \left (a+b x^2\right )}{b^3}-\frac {9 a \left (a+b x^2\right )^2}{b^3}+\frac {2 \left (a+b x^2\right )^3}{b^3}-\frac {6 a^3 \log \left (a+b x^2\right )}{b^3}\right ) \log \left (c \left (a+b x^2\right )^p\right )+\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right )+\frac {1}{3} p^2 \text {Subst}\left (\int \frac {18 a^2 x-9 a x^2+2 x^3-6 a^3 \log (x)}{6 b^3 x} \, dx,x,a+b x^2\right )\\ &=-\frac {1}{18} p \left (\frac {18 a^2 \left (a+b x^2\right )}{b^3}-\frac {9 a \left (a+b x^2\right )^2}{b^3}+\frac {2 \left (a+b x^2\right )^3}{b^3}-\frac {6 a^3 \log \left (a+b x^2\right )}{b^3}\right ) \log \left (c \left (a+b x^2\right )^p\right )+\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right )+\frac {p^2 \text {Subst}\left (\int \frac {18 a^2 x-9 a x^2+2 x^3-6 a^3 \log (x)}{x} \, dx,x,a+b x^2\right )}{18 b^3}\\ &=-\frac {1}{18} p \left (\frac {18 a^2 \left (a+b x^2\right )}{b^3}-\frac {9 a \left (a+b x^2\right )^2}{b^3}+\frac {2 \left (a+b x^2\right )^3}{b^3}-\frac {6 a^3 \log \left (a+b x^2\right )}{b^3}\right ) \log \left (c \left (a+b x^2\right )^p\right )+\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right )+\frac {p^2 \text {Subst}\left (\int \left (18 a^2-9 a x+2 x^2-\frac {6 a^3 \log (x)}{x}\right ) \, dx,x,a+b x^2\right )}{18 b^3}\\ &=\frac {a^2 p^2 x^2}{b^2}-\frac {a p^2 \left (a+b x^2\right )^2}{4 b^3}+\frac {p^2 \left (a+b x^2\right )^3}{27 b^3}-\frac {1}{18} p \left (\frac {18 a^2 \left (a+b x^2\right )}{b^3}-\frac {9 a \left (a+b x^2\right )^2}{b^3}+\frac {2 \left (a+b x^2\right )^3}{b^3}-\frac {6 a^3 \log \left (a+b x^2\right )}{b^3}\right ) \log \left (c \left (a+b x^2\right )^p\right )+\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right )-\frac {\left (a^3 p^2\right ) \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,a+b x^2\right )}{3 b^3}\\ &=\frac {a^2 p^2 x^2}{b^2}-\frac {a p^2 \left (a+b x^2\right )^2}{4 b^3}+\frac {p^2 \left (a+b x^2\right )^3}{27 b^3}-\frac {a^3 p^2 \log ^2\left (a+b x^2\right )}{6 b^3}-\frac {1}{18} p \left (\frac {18 a^2 \left (a+b x^2\right )}{b^3}-\frac {9 a \left (a+b x^2\right )^2}{b^3}+\frac {2 \left (a+b x^2\right )^3}{b^3}-\frac {6 a^3 \log \left (a+b x^2\right )}{b^3}\right ) \log \left (c \left (a+b x^2\right )^p\right )+\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 200, normalized size = 0.93 \begin {gather*} \frac {11 a^2 p^2 x^2}{18 b^2}-\frac {5 a p^2 x^4}{36 b}+\frac {p^2 x^6}{27}-\frac {5 a^3 p^2 \log \left (a+b x^2\right )}{18 b^3}-\frac {a^3 p \log \left (c \left (a+b x^2\right )^p\right )}{3 b^3}-\frac {a^2 p x^2 \log \left (c \left (a+b x^2\right )^p\right )}{3 b^2}+\frac {a p x^4 \log \left (c \left (a+b x^2\right )^p\right )}{6 b}-\frac {1}{9} p x^6 \log \left (c \left (a+b x^2\right )^p\right )+\frac {a^3 \log ^2\left (c \left (a+b x^2\right )^p\right )}{6 b^3}+\frac {1}{6} x^6 \log ^2\left (c \left (a+b x^2\right )^p\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.44, size = 1436, normalized size = 6.68
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1436\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 145, normalized size = 0.67 \begin {gather*} \frac {1}{6} \, x^{6} \log \left ({\left (b x^{2} + a\right )}^{p} c\right )^{2} + \frac {1}{18} \, b p {\left (\frac {6 \, a^{3} \log \left (b x^{2} + a\right )}{b^{4}} - \frac {2 \, b^{2} x^{6} - 3 \, a b x^{4} + 6 \, a^{2} x^{2}}{b^{3}}\right )} \log \left ({\left (b x^{2} + a\right )}^{p} c\right ) + \frac {{\left (4 \, b^{3} x^{6} - 15 \, a b^{2} x^{4} + 66 \, a^{2} b x^{2} - 18 \, a^{3} \log \left (b x^{2} + a\right )^{2} - 66 \, a^{3} \log \left (b x^{2} + a\right )\right )} p^{2}}{108 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 189, normalized size = 0.88 \begin {gather*} \frac {4 \, b^{3} p^{2} x^{6} + 18 \, b^{3} x^{6} \log \left (c\right )^{2} - 15 \, a b^{2} p^{2} x^{4} + 66 \, a^{2} b p^{2} x^{2} + 18 \, {\left (b^{3} p^{2} x^{6} + a^{3} p^{2}\right )} \log \left (b x^{2} + a\right )^{2} - 6 \, {\left (2 \, b^{3} p^{2} x^{6} - 3 \, a b^{2} p^{2} x^{4} + 6 \, a^{2} b p^{2} x^{2} + 11 \, a^{3} p^{2} - 6 \, {\left (b^{3} p x^{6} + a^{3} p\right )} \log \left (c\right )\right )} \log \left (b x^{2} + a\right ) - 6 \, {\left (2 \, b^{3} p x^{6} - 3 \, a b^{2} p x^{4} + 6 \, a^{2} b p x^{2}\right )} \log \left (c\right )}{108 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 4.19, size = 182, normalized size = 0.85 \begin {gather*} \begin {cases} - \frac {11 a^{3} p \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{18 b^{3}} + \frac {a^{3} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}^{2}}{6 b^{3}} + \frac {11 a^{2} p^{2} x^{2}}{18 b^{2}} - \frac {a^{2} p x^{2} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{3 b^{2}} - \frac {5 a p^{2} x^{4}}{36 b} + \frac {a p x^{4} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{6 b} + \frac {p^{2} x^{6}}{27} - \frac {p x^{6} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{9} + \frac {x^{6} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}^{2}}{6} & \text {for}\: b \neq 0 \\\frac {x^{6} \log {\left (a^{p} c \right )}^{2}}{6} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.94, size = 370, normalized size = 1.72 \begin {gather*} \frac {{\left (b x^{2} + a\right )}^{3} p^{2} \log \left (b x^{2} + a\right )^{2}}{6 \, b^{3}} - \frac {{\left (b x^{2} + a\right )}^{2} a p^{2} \log \left (b x^{2} + a\right )^{2}}{2 \, b^{3}} - \frac {{\left (b x^{2} + a\right )}^{3} p^{2} \log \left (b x^{2} + a\right )}{9 \, b^{3}} + \frac {{\left (b x^{2} + a\right )}^{2} a p^{2} \log \left (b x^{2} + a\right )}{2 \, b^{3}} + \frac {{\left (b x^{2} + a\right )}^{3} p \log \left (b x^{2} + a\right ) \log \left (c\right )}{3 \, b^{3}} - \frac {{\left (b x^{2} + a\right )}^{2} a p \log \left (b x^{2} + a\right ) \log \left (c\right )}{b^{3}} + \frac {{\left (b x^{2} + a\right )}^{3} p^{2}}{27 \, b^{3}} - \frac {{\left (b x^{2} + a\right )}^{2} a p^{2}}{4 \, b^{3}} - \frac {{\left (b x^{2} + a\right )}^{3} p \log \left (c\right )}{9 \, b^{3}} + \frac {{\left (b x^{2} + a\right )}^{2} a p \log \left (c\right )}{2 \, b^{3}} + \frac {{\left (b x^{2} + a\right )}^{3} \log \left (c\right )^{2}}{6 \, b^{3}} - \frac {{\left (b x^{2} + a\right )}^{2} a \log \left (c\right )^{2}}{2 \, b^{3}} + \frac {{\left (2 \, b x^{2} + {\left (b x^{2} + a\right )} \log \left (b x^{2} + a\right )^{2} - 2 \, {\left (b x^{2} + a\right )} \log \left (b x^{2} + a\right ) + 2 \, a\right )} a^{2} p^{2} - 2 \, {\left (b x^{2} - {\left (b x^{2} + a\right )} \log \left (b x^{2} + a\right ) + a\right )} a^{2} p \log \left (c\right ) + {\left (b x^{2} + a\right )} a^{2} \log \left (c\right )^{2}}{2 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.31, size = 126, normalized size = 0.59 \begin {gather*} \frac {p^2\,x^6}{27}+{\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )}^2\,\left (\frac {x^6}{6}+\frac {a^3}{6\,b^3}\right )-\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )\,\left (\frac {p\,x^6}{9}+\frac {a^2\,p\,x^2}{3\,b^2}-\frac {a\,p\,x^4}{6\,b}\right )-\frac {5\,a\,p^2\,x^4}{36\,b}-\frac {11\,a^3\,p^2\,\ln \left (b\,x^2+a\right )}{18\,b^3}+\frac {11\,a^2\,p^2\,x^2}{18\,b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________